<template>
  <div>{{ result }}</div>
</template>

<script lang="ts">
import { defineComponent, ref } from "vue";
export default defineComponent({
  name: "MySuspense",
  async setup() {
    let result = ref("");
    await new Promise<any>((reslove, reject) => {
      setTimeout(() => {
        reslove('Success');
        result.value = "Hi Suspense";
      }, 6000);
    });

    return {
      result,
    };
  },
});
</script>